package com.lucy.property.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 楼栋管理
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "property_building")
@ApiModel(value = "单元楼栋")
public class PropertyBuilding extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "区单元ID")
    @Column(name = "unit_id")
    String unitId;

    @ApiModelProperty("区单元编码")
    @Column(name = "unit_code")
    String unitCode;

    @ApiModelProperty("区单元名称")
    @Column(name = "unit_name")
    String unitName;

    @ApiModelProperty("楼栋编码")
    @Column(name = "building_code")
    String buildingCode;

    @ApiModelProperty("楼栋名称")
    @Column(name = "building_name")
    String buildingName;
}
